
#ifndef C_WEAPON_H
#define C_WEAPON_H
	#include "entity.h"
	#include "explosion.h"
	#include "texture.h"
	class CWeapon : public CEntity
	{
		public:
			CWeapon();
			~CWeapon();
			bool getWeaponIsInUse();
			void setWeaponIsInUse(bool use);
			
			bool isAlive;

			float pitch;
			float distanceTravel;	// distance rocket has travelled
			CVector forward;		// forward vector of rocket (for pitch/dir)

			CTexture *explosionTex;
			CExplosion *explosion;

			void Reset();
			virtual void Load() { }
			virtual void Unload(){ }
			virtual void OnAnimate(scalar_t deltaTime){ }
			virtual void OnCollision(CObject *collisionObject){ }
			virtual void OnDraw(CCamera *camera){}
			virtual void OnPrepare(){ }

		private:
			bool _weaponIsUsed;
	};
#endif